#ifndef IDENTITYVIEW_H
#define IDENTITYVIEW_H

#include "viewobject.h"
#include "paramobject.h"
#include <qdom.h>

typedef struct SingleViewParam
{
    QString         m_resNormalPath;
    SingleViewParam()
    {
        m_resNormalPath = "";
    }
}SingleViewParam;


class SingleView : public ViewObject
{
    Q_OBJECT
public:
    static int m_id;
    Q_INVOKABLE explicit SingleView(QWidget *parent = 0);
    ~SingleView();

    void ShowObject();

    void GetAttribute(std::string&);

    void SetAttribute(std::string);

    void ParseXML(QDomElement* );

    void PacketXML(QDomElement*);

    QString FindHqt(QString prefix, QString url);
    QString FindFile(QString prefix, QString name);
    QString FindCss(QString prefix, QString url_origin, QString url_with_suffix);

private:

    SingleViewParam*                     m_paramIdentity;
};

#endif // IDENTITYVIEWOBJECT_H
